import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'color.dart';

class KFontConstant {
  ///小号字体
  static const smallTextSize = 24;

  ///默认字体大小
  static const defaultTextSize = 28;

  ///大号字体
  static const bigTextSize = 32;

  ///加大号字体
  static const maxTextSize = 34;

  ///标题字体
  static const titleTextSize = 36;

  ///系统主色字体样式
  static TextStyle myTextStyle({int size = 16, bool bold = false, Color color = KColorConstant.black333, double height = 1.0}) {
    return TextStyle(
        fontSize: ScreenUtil().setSp(size),
        color: color,
        letterSpacing: 0.3,
        //字间距
        fontWeight: bold ? FontWeight.bold : FontWeight.normal,
        decoration: TextDecoration.none,
        height: height);
  }
}
